#
#
# The root of all building for the C++ parts for the 4911-game
cmake_minimum_required(VERSION 2.8)

project(4911-game)

find_package(Boost
	COMPONENTS
		system thread
	REQUIRED)

#find_package(CryptoPP REQUIRED)

set(CMAKE_CXX_FLAGS   "--std=c++0x -Wextra -Wall -Werror")

file(GLOB_RECURSE 4911_game_cpps RELATIVE_PATH "." "./src/*.cpp")

include_directories(${Boost_INCLUDE_DIRS} ${CryptoPP_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/src)
link_directories(${Boost_LIBRARY_DIRS} ${CryptoPP_LIBRARY_DIRS})

add_executable(4911_game_server ${4911_game_cpps})

target_link_libraries(4911_game_server
		${Boost_LIBRARIES}
		${CryptoPP_LIBRARIES}
		pthread
		crypto++
	)
